﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using TDB.DBInternals;
using System.Linq.Expressions;
using System.Collections;
using System.Xml.Linq;

namespace TDB.Communication
{
  [ServiceKnownType("GetKnowTypes", typeof(AssemblyStore))]
  [ServiceContract(SessionMode = SessionMode.Allowed, ProtectionLevel = System.Net.Security.ProtectionLevel.None)]
  public interface IQueryService
  {
    [OperationContract]
    IEnumerable Get(string database, Expression filterexpression);

    [OperationContract]
    IEnumerable XGet(string database, XElement filterexpression);
  }
}
